package com.tgy.helloworld.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;

/***
 * @ClassName: Cat
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 15:09 2021/12/23
 * @version : V1.0
 */
@Component
@Data
@ToString
@Validated
@ConfigurationProperties(prefix = "cat")
public class Cat {
    @Email
    private String name;
    private int age;
}
